import javax.persistence.*;
import java.util.Date;
import java.util.List;

@Entity
@Table(name = "suppliers")
public class Supplier {
    @Id
    @Column(name = "供应商ID")
    private String supplierId;
    
    @Column(name = "供应商名称")
    private String name;
    
    @Column(name = "供应商位置")
    private String location;
    
    @OneToMany(mappedBy = "supplier", cascade = CascadeType.ALL)
    private List<PurchaseOrder> purchaseOrders;
}